﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuUsuarioEndereco.aspx.cs"
    Inherits="VemTransporte.Views.UsuarioTransporte.MenuUsuarioEndereco" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script language="javascript">
    function FmascCEP(ConteudoCampo) {

        if (((event.keyCode) > 47) && ((event.keyCode) < 58)) {

            NumDig = ConteudoCampo.value;

            TamDig = NumDig.length;

            if (TamDig == 5)

                ConteudoCampo.value = NumDig.substr(0, 5) + "-";

            return (true);
        }

        else return (false)

    }

</script>
    <title>..:: STI ::..</title>
    <link href="../../Content/Estilo/stylo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/menuUsuario_files/css3menu1/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .textEntry
        {}
    </style>
</head>
<body id="corpo2">
    
    <div id="topo">
        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Views/UsuarioTransporte/MenuUsuario.aspx">
        <div id="logoTopo"></div>
        </asp:HyperLink>
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Default.aspx">
        <div id="sair"></div>
        </asp:HyperLink>
    </div>
    <br />

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <table>
        <tr>
            <td>
                <table>
                <tr>
                    <td>
                        <asp:Image ID="ImgFotoUsuario" runat="server" Height="138px" Width="137px" 
                            ImageUrl="~/Content/Imagens/foto.jpg" />
                        <br />
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="MenuUsuarioAlterarFoto.aspx">Alterar foto</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="LabelbemVindo" runat="server" Text="Bem vindo," Font-Bold="True" ForeColor="#000099"></asp:Label>
                        <br />
                        <asp:Label ID="LabelNomeUsuario" runat="server" Text="Label" Font-Bold="True" ForeColor="#000099"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                    <ul id="css3menu1" class="topmenu">
	                    <li class="topfirst"><a href="MenuUsuarioDadosPessoais.aspx" title="Dados Pessoais" style="width:118px;">Dados Pessoais</a></li>
	                    <li class="topmenu"><a href="#" title="Meu Endereço" style="width:118px; color:#000; background-color:#d5e3e7">Meu Endereço</a></li>
	                    <li class="topmenu"><a href="MenuUsuarioAlterarSenha.aspx" title="Alterar Senha" style="width:118px;">Alterar Senha</a></li>
	                    <li class="topmenu"><a href="MenuUsuarioLinha.aspx" title="Linhas de Ônibus" style="width:118px;">Linhas de Ônibus</a></li>
	                    <li class="topmenu"><a href="MenuUsuarioHorarios.aspx" title="Horarios" style="width:118px;">Horarios</a></li>
	                    <li class="toplast"><a href="MenuUsuarioMapa.aspx" title="Localizar Ônibus" style="width:118px;">Localizar Ônibus</a></li>
                    </ul>
                    </td>
                </tr>
                </table>
            </td>
            <td style="width: 10%"></td>
            <td style="width: 90%">
                <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                    <ProgressTemplate>
                        &nbsp;
                        <asp:Image ID="ImageProgress2" runat="server" 
                            ImageUrl="~/Content/gifs/wait_gif.gif" />
                    </ProgressTemplate>
                </asp:UpdateProgress>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>

                        <p>
                            &nbsp;</p>
                        <p>
                            <table style="width:100%;">
                                <tr>
                                    <td class="style2">
                                        <asp:Label ID="UserNameLabel" runat="server" 
                                        Font-Names="verdana" Font-Size="12px" ForeColor="#203360">CEP:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxCep" runat="server" 
                                            onkeypress="if (!(FmascCEP(this))) return false;" CssClass="textEntry" MaxLength="9" 
                                            Width="141px" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                                        
                                        &nbsp;<asp:Button ID="ButtonBuscaCEP" runat="server" OnClick="ButtonBuscaCEP_Click" 
                                         BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White" 
                                         Height="30px" Width="100px"   Text="Buscar" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style2">
                                        <asp:Label ID="Label1" runat="server" 
                                        Font-Names="verdana" Font-Size="12px" ForeColor="#203360">Endereço:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxEndereco" runat="server" CssClass="textEntry" 
                                            ReadOnly="True" Width="420px" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style2">
                                        <asp:Label ID="Label2" runat="server" 
                                        Font-Names="verdana" Font-Size="12px" ForeColor="#203360">Bairro:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxBairro" runat="server" CssClass="textEntry" 
                                            ReadOnly="True" Width="420px" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style2">
                                        <asp:Label ID="Label3" runat="server" 
                                        Font-Names="verdana" Font-Size="12px" ForeColor="#203360">Cidade:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxCidade" runat="server" CssClass="textEntry" 
                                            ReadOnly="True" Width="420px" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style2">
                                        <asp:Label ID="Label4" runat="server"
                                        Font-Names="verdana" Font-Size="12px" ForeColor="#203360">Estado:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TextBoxEstado" runat="server" CssClass="textEntry" 
                                            ReadOnly="True" Height="30px" BorderColor="#9aafca" Font-Size="14px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Button ID="Button1" runat="server" BackColor="#6ea954" BorderColor="#6ea954" ForeColor="White" 
                                        Height="30px" Width="100px" onclick="Button1_Click" Text="Salvar"  />
                                    </td>
                                </tr>
                            </table>
                        </p>
                        
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
